<template>
  <web-view :src="signViewPath" />
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Router, onLoad } from '@U/common'
import { getConfirmationLetter } from '@P/Ticket/request'

const signViewPath: any = ref('')
onLoad(async () => {
  if (Router.route().params?.bizGroupId) {
    const { code, data } = await getConfirmationLetter({ bizGroupId: Router.route().params?.bizGroupId })
    if (code === 200 && data) signViewPath.value = data
  } else {
    signViewPath.value = Router.route().params?.path
  }
})

</script>